package com.xiaotu.es.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author zhangxiao
 * @create 2022-04-28 16:24
 */
@Data
@Document(indexName = "star", shards = 3, replicas = 2)
public class StarInfo {

    /**
     * 艺人ID
     */
    @Id
    @Field(type = FieldType.Integer)
    private Integer starId;

    /**
     * 艺人名
     */
    private String name;

    /**
     * 别名
     */
    @Field(type = FieldType.Text, analyzer = "standard", searchAnalyzer = "ik_smart")
    private String alias;

    /**
     * 职业
     */
    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    private String occupation;

}
